package com.sailfish.springbootdemo.controller.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.PcbaDevice;
import com.sailfish.springbootdemo.service.db1.PcbaDeviceAgeHandledService;
import com.sailfish.springbootdemo.service.db1.PcbaDeviceService;
import com.sailfish.springbootdemo.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@CrossOrigin
@RequestMapping("/pcbaDeviceAgeHandled")
public class PcbaDeviceAgeHandledController {

    @Autowired
    private PcbaDeviceAgeHandledService pcbaDeviceAgeHandledService;

    @PostMapping("/queryAllAssetNumberDevices")
    public Result queryAllAssetNumberDevices(String chooseCompanyAndWorkshop, String assetNumber, Integer handledType, Integer pcbaDeviceTypeId, Integer brandId, Integer brandTypeId, Integer handledStatus, Integer page, Integer pageSize) {
        return pcbaDeviceAgeHandledService.queryAllAssetNumberDevices(chooseCompanyAndWorkshop, assetNumber, handledType, pcbaDeviceTypeId, brandId, brandTypeId, handledStatus, page, pageSize);
    }

}
